package com.midou.administration.controller;


import com.midou.administration.entity.Function;
import com.midou.administration.entity.Role;
import com.midou.administration.service.FunctionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author MrChen
 * @since 2021-03-24
 */
@RestController
@RequestMapping("/administration/function")
public class FunctionController {
    @Autowired
    private FunctionService functionService;

    @RequestMapping("/query/function")
    public List<Function> queryFunction(){
        return functionService.queryFunction();
    }
}
